package com.yugao.fintech.libra.shortlink.assembly;

import com.yugao.fintech.libra.shortlink.model.entity.ShortLink;
import com.yugao.fintech.libra.shortlink.model.rqrs.ShortLinkResp;
import com.yugao.fintech.libra.shortlink.model.rqrs.ShortLinkSaveReq;
import com.yugao.fintech.libra.shortlink.model.rqrs.ShortLinkUpdateReq;
import org.mapstruct.Mapper;

/**
 * 短链
 */
@Mapper(componentModel = "spring")
public interface ShortLinkAssembly {
    ShortLink toShortLink(ShortLinkSaveReq source);
    ShortLink toShortLink(ShortLinkUpdateReq source);
    ShortLinkResp toShortLinkResp(ShortLink source);
}
